package com.codingman.springbootdemo2;

import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.HttpMessageConverter;
@Configuration
public class MyHttpMessageConvertersConfiguration {
	@Bean
    public HttpMessageConverters customConverters() {
        HttpMessageConverter<?> another = new AnotherHttpMessageConverter();
        return new HttpMessageConverters(another);
    }
}
